package cn.itsource.user.mapper;

import cn.itsource.basic.mapper.BasicMapper;
import cn.itsource.user.domain.LoginInfo;
import cn.itsource.user.domain.User;
import org.apache.ibatis.annotations.Param;

public  interface LoginInfoMapper extends BasicMapper<LoginInfo>{
    LoginInfo login(String username);

    /*
           根据手机号和 用户类型查询数据
           @Param  给参数起别名
     */
    LoginInfo loadByPhone(@Param("phone") String phone,@Param("type") Integer type);

}
